﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data.Common;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.Infrastructure;
using DLM.Domain.Model;

namespace DLM.Data.EF.CodeFirst.Mapping
{
    public class BonusLogMap : EntityTypeConfiguration<BonusLog>
    {
        public BonusLogMap()
        {
            this.HasKey(t => t.LogID);
            this.ToTable("BonusLog");
            this.Property(t => t.LogID).HasColumnName("LogID");
            this.Property(t => t.UserID).HasColumnName("UserID");
            this.Property(t => t.PartyID).HasColumnName("PartyID");
            this.Property(t => t.Bonus).HasColumnName("Bonus");
            this.Property(t => t.Desc).HasColumnName("Desc").IsUnicode(true).HasMaxLength(35);
            this.Property(t => t.CreateDate).HasColumnName("CreateDate");
        }
    }
}
